package com.eqxiu.ieditor.api.controller.common;

/**
 * @Classname 字符处理
 * @Description TODO
 * @Author henry_chen
 * @Date 2019-07-12-10:17
 **/
public class StringUtils {
    public static  String removeNonBmpUnicode(String str) {
        if (str == null) {
            return null;
        }
        str = str.replaceAll("[^\\u0000-\\uFFFF]", "?");
        return str;
    }
}
